@import '@assets/css/common.scss';

.home-page {
    font-size: 24px;
    color: $cor0;
    width: 100%;
    height: 100%;
    @include flex_layout(column, flex-start, flex-start);

    .home-header {
        width: 100%;
        @include position();

        .head-img {
            width: 100%;
        }

        .header-content {
            width: 100%;
            height: 100%;
            padding: 0 40px;
            @include position(absolute, left, top, 0, 0, 9);
            @include flex_layout(row, flex-start, center);

            .logo-title {
                @include flex_layout(row, flex-start, center);

                .logo {
                    width: 42px;
                    height: 42px;
                    margin-right: 20px;
                    background: url('#{$iconPath}/party-logo.png') center center no-repeat;
                }

                .home-title {
                    font-size: $fz38;
                    color: $cor1;
                }
            }

            .page-name {
                color: $cor0;
                @include position-center();
                @include flex_layout(row, flex-start, center);

                .page-icon {
                    width: 34px;
                    height: 34px;
                    margin-right: 10px;
                    background: url('#{$iconPath}/home-page-icon.png') center center no-repeat;
                }

                .page-name-txt {
                    font-size: $fz34;
                }
            }
        }
    }

    .home-content {
        width: 100%;
        flex: 1;
        background: $bg0 url('#{$imagePath}/home-content-header.jpg') top center no-repeat;
        -webkit-background-size: 100%;
        background-size: 100%;
        //padding-top: 60px;
        @include position();

        .content-wrap {
            width: 100%;
            height: 100%;
            @include flex_layout(row, center, center);

            .map-area {
                width: 590px;
                height:629px;
                float: left;
                @include position();

                .to-county {
                    @include position(absolute, right, bottom, 200px, 10px, 9);
                    height: 38px;
                    line-height: 38px;
                    padding: 0 15px;
                    color: $cor0;
                    font-size: $fzml;
                    text-align: center;
                    background-color: $bg3;
                    border-radius: 5px;
                    cursor: pointer;
                    box-shadow: 0 0 10px $bg3;

                    .icon-xy {
                        display: inline-block;
                        width: 17px;
                        height: 23px;
                        margin-right: 10px;
                        vertical-align: middle;
                        margin-top: -2px;
                        background: url('#{$iconPath}/xy.png') center center no-repeat;
                    }
                }

                .svg-item {
                    height: 0;
                    cursor: pointer;
                    @include position(absolute);

                    .parter-icon {
                        width: 16px;
                        height: 16px;
                        @include position(absolute);
                        background: url('#{$iconPath}/parter-icon-normal.png') center center no-repeat;

                        .parter-num {
                            display: none;
                            @include position(absolute, left, top, -20px, 28px, 9);
                            line-height: 20px;
                            padding: 0 10px;
                            font-size: $fzs;
                            color: $cor3;
                            background-color: $bg0;
                            white-space: nowrap;

                        }
                    }

                    &:hover, &.active{
                        svg { fill: #fa4500; }
                        .parter-icon {
                            background: url('#{$iconPath}/parter-icon-active.png') center center no-repeat;

                            &:after {
                                display: block;
                                content: '';
                                @include position(absolute, left, top, -10px, 20px, 0);
                                @include arrow(8px,right, $bg0, 0);
                                transform: rotate(10deg);
                                -webkit-transform: rotate(10deg);
                            }

                            .parter-num {
                                display: block;
                            }
                        }
                    }

                    svg { fill: #fcb700; }
                }

                .svg-1 { left: 171px; top: 0; }
                .svg-2 { left: 136px; top: 85px; }
                .svg-3 { left: 0px; top: 190px; }
                .svg-4 { left: 200px; top: 133px; }
                .svg-5 { left: 311px; top: 155px; }
                .svg-6 { left: 443px; top: 123px; }
                .svg-7 { left: 186px;  top: 359px; }
                .svg-8 { left: 452px; top: 359px; }
            }

            .gather-msg {
                width: 709px;
                height: 746px;
                margin-left: 50px;
                @include position();
                background: url('#{$iconPath}/line-bg.png') center center no-repeat;

                .icon-pointer {
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                    background-color: #efcb91;
                    @include position(absolute);

                    &.pointer-1 { left: 653px; top: 21px; }
                    &.pointer-2 { left: 557px; top: 78px; }
                    &.pointer-3 { left: 510px; top: 109px; }
                    &.pointer-4 { left: 445px; top: 155px; }
                    &.pointer-5 { left: 384px; top: 205px; }
                    &.pointer-6 { left: 324px; top: 260px; }
                    &.pointer-7 { left: 270px; top: 316px; }
                    &.pointer-8 { left: 217px; top: 377px; }
                    &.pointer-9 { left: 170px; top: 437px; }
                    &.pointer-10 { left: 123px; top: 506px; }
                    &.pointer-11 { left: 99px; top: 544px; }
                    &.pointer-12 { left: 70px; top: 596px; }

                    .area-name {
                        @include position(absolute);
                        padding: 0 20px;
                        line-height: 26px;
                        background: $bg3;
                        font-size: $fzml;
                        color: $cor0;
                        white-space: nowrap;
                        right: 24px;
                        top: -25px;
                    }

                    .txt-intr {
                        width: 390px;
                        padding: 15px;
                        background-color: rgba(255, 255, 255, 0.4);
                        border-radius: 5px;
                        @include position(absolute, left, top, 25px, 100%, 9);


                        .txt-detail {
                            width: 100%;
                            overflow: hidden;
                            line-height: 24px;
                            height: 72px;
                            font-size: $fzn;
                            color: $cor5;
                            @include position();
                            cursor: pointer;

                            .after-btn {
                                @include position(absolute, right, bottom, 0, 0, 9);
                                height: 24px;
                                line-height: 24px;
                                padding: 0 5px;
                                font-size: $fzn;
                                color: $cor0;
                                background-color: $bg10;
                            }
                        }
                    }

                    .txt-area {
                        white-space: nowrap;
                        @include position(absolute);
                        font-size: $fzn;
                        color: $cor5;
                        &.right { top: 100%; left: 25px; }
                        &.left { top: -100%; right: 30px}

                        .data {
                            font-size: $fzsh;
                            color: $cor2;
                            display: inline-block;
                            margin-left: 3px;
                            margin-right: 3px;
                            margin-top: -10px;
                        }
                    }
                }
            }
        }

        .home-left-nav, .home-right-nav {
            @include position-center(fixed, left);
            overflow: hidden;

            .nav-item {
                width: 160px;
                height: 110px;
                margin-bottom: 2px;
                margin-left: -1px;
                border: $b1;
                background-color: $bg1;
                cursor: pointer;
                @include flex_layout(column, center, center);

                .nav-item-icon {
                    width: 42px;
                    height: 38px;
                    margin-bottom: 10px;
                }

                @each $icon in parter-msg-cion, parter-pay-icon, check-icon, active-icon, learn-icon, meet-icon, heart-icon, help-icon, work-icon, vol-icon, graceful-icon, manage-icon {
                    .#{$icon} {
                        background: url('#{$iconPath}/#{$icon}.png') center center no-repeat;
                    }
                }

                .nav-item-txt {
                    font-size: $fzml;
                    color: $cor3;
                }
            }
        }

        .home-right-nav {
            left: auto;
            right: 0;
        }

        .bottom-options {
            width: 100%;
            @include position(absolute, left, bottom, 0, 0, 0);
            .bottom-img {
                width: 100%;
            }

            .options-wrap {
                width: 100%;
                @include flex_layout(row, center, center);
                @include position(absolute, left, bottom, 0, 0, 0);

                .options-item {
                    @include flex_layout(column, center, center);
                    width: 86px;
                    height: 86px;
                    border: $b2;
                    border-radius: 50%;
                    background-color: $bg5;
                    margin-right: 50px;
                    cursor: pointer;
                    text-align: center;
                    color: $cor5;

                    &:last-child {
                        margin-right: 0;
                    }

                    .num {
                        width: 100%;
                        height: 40px;
                        line-height: 40px;
                        color: $cor1;
                        font-size: $fzmh;

                        &.player {
                            background: url("#{$iconPath}/player.png") center center no-repeat;
                        }
                    }

                    .item-name {
                        height: 20px;
                        line-height: 20px;
                        font-size: $fzsl;

                        .player {
                            color: $cor8;
                        }
                    }

                    .units {
                        height: 16px;
                        line-height: 16px;
                        font-size: $fzs;

                    }
                }
            }
        }
    }
}